package models;

import javax.persistence.Entity;
import javax.persistence.Id;

import org.hibernate.validator.constraints.NotBlank;

import play.data.validation.Constraints.Required;
import play.db.ebean.Model;

@Entity
public class About extends Model {

    private static final long serialVersionUID = 1L;

    @Id
    private Long id;

    @NotBlank(message = "Name cannot be blank")
    @Required(message = "A name is required")
    private String name;
    
    @Required(message = "A description is required")
    private String description;
    
    @Required(message = "A mail is required")
    private String mail;
    
    @Required(message = "A phone number is required")
    private String phone;
    
    public static Finder<Long, About> find = new Finder<Long, About>(Long.class, About.class);

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
}
